<?
class Contact {
	var $htmlString;

	function createContactForm() {
		global $translate;
		
		$this->htmlString  = '<form action="'.$_SERVER['PHP_SELF'].'?contact=1" method="POST">';
		$this->htmlString .= '<p><label>'.$translate->_('Your Name').'</label>';
		$this->htmlString .= '<input type="text" name="contactName" style="width: 400px;" /></p>';
		$this->htmlString .= '<p><label>'.$translate->_('Email Address').'</label>';
		$this->htmlString .= '<input type="text" name="contactEmail" style="width: 400px;" /></p>';
		$this->htmlString .= '<p><label>'.$translate->_('Comments or Questions').'</label>';
		$this->htmlString .= '<textarea name="contactMessage" style="width: 400px; height: 200px;"></textarea></p>';
		$this->htmlString .= '<input type="submit" style="margin-left: 3px;" value="'.$translate->_('Send').'" class="buttonSendMessage" />';
		$this->htmlString .= '</form>'; 
		
	}
	
	function renderContactHTML() {
		return $this->htmlString;
	}
}	